package offer;

public class offer55 {
    int deep=0;
    public int maxDepth(TreeNode root) {
        if(root==null)
            return 0;
        int left =maxDepth(root.left);
       int right= maxDepth(root.right);
        return left+right+1;
    }


}
